<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>usbps: xusbps_ch9.h File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="HTML_custom.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="xlogo_bg.gif"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">usbps
   </div>
   <div id="projectbrief">Xilinx SDK Drivers API Documentation</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',false,false,'search.php','Search');
});
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('xusbps__ch9_8h.html','');});
</script>
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">xusbps_ch9.h File Reference</div>  </div>
</div><!--header-->
<div class="contents">
<a name="details" id="details"></a><h2 class="groupheader">Overview</h2>
<div class="textblock"><p>This file contains definitions used in the chapter 9 code. </p>
<pre>
MODIFICATION HISTORY:</pre><pre>Ver   Who  Date     Changes
<hr/>

1.00a wgr  10/10/10 First release
1.04a nm   03/04/13 Fixed CR# 704022. Implemented TEST_MODE Feature.
2.1   kpc  04/28/14 Added macros secific to cache operations
</pre> </div><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
Macros</h2></td></tr>
<tr><td colspan="2"><div class="groupHeader">Request types</div></td></tr>
<tr class="memitem:ac01fcba5b5b1a16e77cbbf38db59adca"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="xusbps__ch9_8h.html#ac01fcba5b5b1a16e77cbbf38db59adca">XUSBPS_REQ_TYPE_MASK</a>&#160;&#160;&#160;0x60</td></tr>
<tr class="memdesc:ac01fcba5b5b1a16e77cbbf38db59adca"><td class="mdescLeft">&#160;</td><td class="mdescRight">Mask for request opcode.  <a href="#ac01fcba5b5b1a16e77cbbf38db59adca">More...</a><br /></td></tr>
<tr class="separator:ac01fcba5b5b1a16e77cbbf38db59adca"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a55508a293a1277157e71ab94512617e3"><td class="memItemLeft" align="right" valign="top"><a id="a55508a293a1277157e71ab94512617e3"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>XUSBPS_CMD_STDREQ</b>&#160;&#160;&#160;0x00</td></tr>
<tr class="separator:a55508a293a1277157e71ab94512617e3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afa6b147ffab665b15c86b729df45f9ad"><td class="memItemLeft" align="right" valign="top"><a id="afa6b147ffab665b15c86b729df45f9ad"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>XUSBPS_CMD_CLASSREQ</b>&#160;&#160;&#160;0x20</td></tr>
<tr class="separator:afa6b147ffab665b15c86b729df45f9ad"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7bbec1275d00ed8195c646ad9ddd9085"><td class="memItemLeft" align="right" valign="top"><a id="a7bbec1275d00ed8195c646ad9ddd9085"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>XUSBPS_CMD_VENDREQ</b>&#160;&#160;&#160;0x40</td></tr>
<tr class="separator:a7bbec1275d00ed8195c646ad9ddd9085"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab655d2d8562a99fadd06f4799847d31d"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="xusbps__ch9_8h.html#ab655d2d8562a99fadd06f4799847d31d">XUSBPS_REQ_REPLY_LEN</a>&#160;&#160;&#160;1024</td></tr>
<tr class="memdesc:ab655d2d8562a99fadd06f4799847d31d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Max size of reply buffer.  <a href="#ab655d2d8562a99fadd06f4799847d31d">More...</a><br /></td></tr>
<tr class="separator:ab655d2d8562a99fadd06f4799847d31d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr><td colspan="2"><div class="groupHeader">Request Values</div></td></tr>
<tr class="memitem:aee52c702c6bd8d712c9e6ed95376a128"><td class="memItemLeft" align="right" valign="top"><a id="aee52c702c6bd8d712c9e6ed95376a128"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>XUSBPS_REQ_GET_STATUS</b>&#160;&#160;&#160;0x00</td></tr>
<tr class="separator:aee52c702c6bd8d712c9e6ed95376a128"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8fd07e512b2b17a6b368dda9239c287e"><td class="memItemLeft" align="right" valign="top"><a id="a8fd07e512b2b17a6b368dda9239c287e"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>XUSBPS_REQ_CLEAR_FEATURE</b>&#160;&#160;&#160;0x01</td></tr>
<tr class="separator:a8fd07e512b2b17a6b368dda9239c287e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac909a5865ccd76d99245b27172de24c7"><td class="memItemLeft" align="right" valign="top"><a id="ac909a5865ccd76d99245b27172de24c7"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>XUSBPS_REQ_SET_FEATURE</b>&#160;&#160;&#160;0x03</td></tr>
<tr class="separator:ac909a5865ccd76d99245b27172de24c7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad239ee59f25776e17f146c29dff75920"><td class="memItemLeft" align="right" valign="top"><a id="ad239ee59f25776e17f146c29dff75920"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>XUSBPS_REQ_SET_ADDRESS</b>&#160;&#160;&#160;0x05</td></tr>
<tr class="separator:ad239ee59f25776e17f146c29dff75920"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6880a99f055ceaeed9fb647e43240fe8"><td class="memItemLeft" align="right" valign="top"><a id="a6880a99f055ceaeed9fb647e43240fe8"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>XUSBPS_REQ_GET_DESCRIPTOR</b>&#160;&#160;&#160;0x06</td></tr>
<tr class="separator:a6880a99f055ceaeed9fb647e43240fe8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3858957280e118f618f8ce326f87df7d"><td class="memItemLeft" align="right" valign="top"><a id="a3858957280e118f618f8ce326f87df7d"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>XUSBPS_REQ_SET_DESCRIPTOR</b>&#160;&#160;&#160;0x07</td></tr>
<tr class="separator:a3858957280e118f618f8ce326f87df7d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a538de6c06c10ee9bc5b26c9114ac74b8"><td class="memItemLeft" align="right" valign="top"><a id="a538de6c06c10ee9bc5b26c9114ac74b8"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>XUSBPS_REQ_GET_CONFIGURATION</b>&#160;&#160;&#160;0x08</td></tr>
<tr class="separator:a538de6c06c10ee9bc5b26c9114ac74b8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a33d1cccccb708f7b164eb2d120848fec"><td class="memItemLeft" align="right" valign="top"><a id="a33d1cccccb708f7b164eb2d120848fec"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>XUSBPS_REQ_SET_CONFIGURATION</b>&#160;&#160;&#160;0x09</td></tr>
<tr class="separator:a33d1cccccb708f7b164eb2d120848fec"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa8402545f61e6805b25f3bef7f61b4c2"><td class="memItemLeft" align="right" valign="top"><a id="aa8402545f61e6805b25f3bef7f61b4c2"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>XUSBPS_REQ_GET_INTERFACE</b>&#160;&#160;&#160;0x0a</td></tr>
<tr class="separator:aa8402545f61e6805b25f3bef7f61b4c2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad18b727aff50943e9a5d22309c27e6e0"><td class="memItemLeft" align="right" valign="top"><a id="ad18b727aff50943e9a5d22309c27e6e0"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>XUSBPS_REQ_SET_INTERFACE</b>&#160;&#160;&#160;0x0b</td></tr>
<tr class="separator:ad18b727aff50943e9a5d22309c27e6e0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a290639ad6dfb515bc974484ecd0ba828"><td class="memItemLeft" align="right" valign="top"><a id="a290639ad6dfb515bc974484ecd0ba828"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>XUSBPS_REQ_SYNC_FRAME</b>&#160;&#160;&#160;0x0c</td></tr>
<tr class="separator:a290639ad6dfb515bc974484ecd0ba828"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr><td colspan="2"><div class="groupHeader">Feature Selectors</div></td></tr>
<tr class="memitem:a6ecba262952827420b0ce035b2bcbced"><td class="memItemLeft" align="right" valign="top"><a id="a6ecba262952827420b0ce035b2bcbced"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>XUSBPS_ENDPOINT_HALT</b>&#160;&#160;&#160;0x00</td></tr>
<tr class="separator:a6ecba262952827420b0ce035b2bcbced"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3850f8fc715402bfd48ada855fb54bb7"><td class="memItemLeft" align="right" valign="top"><a id="a3850f8fc715402bfd48ada855fb54bb7"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>XUSBPS_DEVICE_REMOTE_WAKEUP</b>&#160;&#160;&#160;0x01</td></tr>
<tr class="separator:a3850f8fc715402bfd48ada855fb54bb7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a677164bf6f34d81944ef8ed27292adbb"><td class="memItemLeft" align="right" valign="top"><a id="a677164bf6f34d81944ef8ed27292adbb"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>XUSBPS_TEST_MODE</b>&#160;&#160;&#160;0x02</td></tr>
<tr class="separator:a677164bf6f34d81944ef8ed27292adbb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr><td colspan="2"><div class="groupHeader">Descriptor Types</div></td></tr>
<tr class="memitem:ac44e8a000977870fe01ac490bdbc79c3"><td class="memItemLeft" align="right" valign="top"><a id="ac44e8a000977870fe01ac490bdbc79c3"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>XUSBPS_TYPE_DEVICE_DESC</b>&#160;&#160;&#160;0x01</td></tr>
<tr class="separator:ac44e8a000977870fe01ac490bdbc79c3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a82661876f97694b12014338680d634f2"><td class="memItemLeft" align="right" valign="top"><a id="a82661876f97694b12014338680d634f2"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>XUSBPS_TYPE_CONFIG_DESC</b>&#160;&#160;&#160;0x02</td></tr>
<tr class="separator:a82661876f97694b12014338680d634f2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1e9f8dc4e7740b28aac035ba62605a28"><td class="memItemLeft" align="right" valign="top"><a id="a1e9f8dc4e7740b28aac035ba62605a28"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>XUSBPS_TYPE_STRING_DESC</b>&#160;&#160;&#160;0x03</td></tr>
<tr class="separator:a1e9f8dc4e7740b28aac035ba62605a28"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ada607f8e93e4d9f0aa55849d6e3adc07"><td class="memItemLeft" align="right" valign="top"><a id="ada607f8e93e4d9f0aa55849d6e3adc07"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>XUSBPS_TYPE_IF_CFG_DESC</b>&#160;&#160;&#160;0x04</td></tr>
<tr class="separator:ada607f8e93e4d9f0aa55849d6e3adc07"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a03f74259d6b0ef9dc068e9966bf248f2"><td class="memItemLeft" align="right" valign="top"><a id="a03f74259d6b0ef9dc068e9966bf248f2"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>XUSBPS_TYPE_ENDPOINT_CFG_DESC</b>&#160;&#160;&#160;0x05</td></tr>
<tr class="separator:a03f74259d6b0ef9dc068e9966bf248f2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a283b00f1dc8526b18910b0a31c59c70b"><td class="memItemLeft" align="right" valign="top"><a id="a283b00f1dc8526b18910b0a31c59c70b"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>XUSBPS_TYPE_DEVICE_QUALIFIER</b>&#160;&#160;&#160;0x06</td></tr>
<tr class="separator:a283b00f1dc8526b18910b0a31c59c70b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad89278e8fa85ffa98bcc6d7460148ef2"><td class="memItemLeft" align="right" valign="top"><a id="ad89278e8fa85ffa98bcc6d7460148ef2"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>XUSBPS_TYPE_HID_DESC</b>&#160;&#160;&#160;0x21</td></tr>
<tr class="separator:ad89278e8fa85ffa98bcc6d7460148ef2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a63d8b4ada7903aaf0f26b2c9c6a10025"><td class="memItemLeft" align="right" valign="top"><a id="a63d8b4ada7903aaf0f26b2c9c6a10025"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>XUSBPS_TYPE_REPORT_DESC</b>&#160;&#160;&#160;0x22</td></tr>
<tr class="separator:a63d8b4ada7903aaf0f26b2c9c6a10025"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr><td colspan="2"><div class="groupHeader">USB Device States</div></td></tr>
<tr class="memitem:aa52ed5461852211b3193b0204261882e"><td class="memItemLeft" align="right" valign="top"><a id="aa52ed5461852211b3193b0204261882e"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>XUSBPS_DEVICE_ATTACHED</b>&#160;&#160;&#160;0x00</td></tr>
<tr class="separator:aa52ed5461852211b3193b0204261882e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8d5a4cab2f439ee595d988433c8f8578"><td class="memItemLeft" align="right" valign="top"><a id="a8d5a4cab2f439ee595d988433c8f8578"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>XUSBPS_DEVICE_POWERED</b>&#160;&#160;&#160;0x01</td></tr>
<tr class="separator:a8d5a4cab2f439ee595d988433c8f8578"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7d8422dbe4daecd53f68386b1246ec4b"><td class="memItemLeft" align="right" valign="top"><a id="a7d8422dbe4daecd53f68386b1246ec4b"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>XUSBPS_DEVICE_DEFAULT</b>&#160;&#160;&#160;0x02</td></tr>
<tr class="separator:a7d8422dbe4daecd53f68386b1246ec4b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abb8a9567404f72a4395891a5d4797e39"><td class="memItemLeft" align="right" valign="top"><a id="abb8a9567404f72a4395891a5d4797e39"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>XUSBPS_DEVICE_ADDRESSED</b>&#160;&#160;&#160;0x03</td></tr>
<tr class="separator:abb8a9567404f72a4395891a5d4797e39"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a569c08502c600fb18f6ebb32a8af375b"><td class="memItemLeft" align="right" valign="top"><a id="a569c08502c600fb18f6ebb32a8af375b"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>XUSBPS_DEVICE_CONFIGURED</b>&#160;&#160;&#160;0x04</td></tr>
<tr class="separator:a569c08502c600fb18f6ebb32a8af375b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a80770d1ce67bc62b812f586d10e1a86b"><td class="memItemLeft" align="right" valign="top"><a id="a80770d1ce67bc62b812f586d10e1a86b"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>XUSBPS_DEVICE_SUSPENDED</b>&#160;&#160;&#160;0x05</td></tr>
<tr class="separator:a80770d1ce67bc62b812f586d10e1a86b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr><td colspan="2"><div class="groupHeader">Status type</div></td></tr>
<tr class="memitem:a18be79bb10f098a65973bc7957e66a8b"><td class="memItemLeft" align="right" valign="top"><a id="a18be79bb10f098a65973bc7957e66a8b"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>XUSBPS_STATUS_MASK</b>&#160;&#160;&#160;0x3</td></tr>
<tr class="separator:a18be79bb10f098a65973bc7957e66a8b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af2aac712f8858bcb4823285750d6fe77"><td class="memItemLeft" align="right" valign="top"><a id="af2aac712f8858bcb4823285750d6fe77"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>XUSBPS_STATUS_DEVICE</b>&#160;&#160;&#160;0x0</td></tr>
<tr class="separator:af2aac712f8858bcb4823285750d6fe77"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3ddeabd314bb48e4d77afdfe88d04df6"><td class="memItemLeft" align="right" valign="top"><a id="a3ddeabd314bb48e4d77afdfe88d04df6"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>XUSBPS_STATUS_INTERFACE</b>&#160;&#160;&#160;0x1</td></tr>
<tr class="separator:a3ddeabd314bb48e4d77afdfe88d04df6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a05eba0250b69749c077fa30b0ac6c62a"><td class="memItemLeft" align="right" valign="top"><a id="a05eba0250b69749c077fa30b0ac6c62a"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>XUSBPS_STATUS_ENDPOINT</b>&#160;&#160;&#160;0x2</td></tr>
<tr class="separator:a05eba0250b69749c077fa30b0ac6c62a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr><td colspan="2"><div class="groupHeader">EP Types</div></td></tr>
<tr class="memitem:a004a618412509ffa4d3be224c452e13b"><td class="memItemLeft" align="right" valign="top"><a id="a004a618412509ffa4d3be224c452e13b"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>XUSBPS_EP_CONTROL</b>&#160;&#160;&#160;0</td></tr>
<tr class="separator:a004a618412509ffa4d3be224c452e13b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1115f8412399bcccc3b4fea887ffa103"><td class="memItemLeft" align="right" valign="top"><a id="a1115f8412399bcccc3b4fea887ffa103"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>XUSBPS_EP_ISOCHRONOUS</b>&#160;&#160;&#160;1</td></tr>
<tr class="separator:a1115f8412399bcccc3b4fea887ffa103"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a11c5e226268cd772d6a35a44ea84614d"><td class="memItemLeft" align="right" valign="top"><a id="a11c5e226268cd772d6a35a44ea84614d"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>XUSBPS_EP_BULK</b>&#160;&#160;&#160;2</td></tr>
<tr class="separator:a11c5e226268cd772d6a35a44ea84614d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2b0c2a87439a3fff629ed528082a3ead"><td class="memItemLeft" align="right" valign="top"><a id="a2b0c2a87439a3fff629ed528082a3ead"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>XUSBPS_EP_INTERRUPT</b>&#160;&#160;&#160;3</td></tr>
<tr class="separator:a2b0c2a87439a3fff629ed528082a3ead"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr><td colspan="2"><div class="groupHeader">Device Classes</div></td></tr>
<tr class="memitem:a3bf3e6080c2df6d98da996a5c63481aa"><td class="memItemLeft" align="right" valign="top"><a id="a3bf3e6080c2df6d98da996a5c63481aa"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>XUSBPS_CLASS_HID</b>&#160;&#160;&#160;0x03</td></tr>
<tr class="separator:a3bf3e6080c2df6d98da996a5c63481aa"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac4473b6c9b6db2e6b7583ce430c6b532"><td class="memItemLeft" align="right" valign="top"><a id="ac4473b6c9b6db2e6b7583ce430c6b532"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>XUSBPS_CLASS_STORAGE</b>&#160;&#160;&#160;0x08</td></tr>
<tr class="separator:ac4473b6c9b6db2e6b7583ce430c6b532"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a52692139499c4653007a67d804987c39"><td class="memItemLeft" align="right" valign="top"><a id="a52692139499c4653007a67d804987c39"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>XUSBPS_CLASS_VENDOR</b>&#160;&#160;&#160;0xFF</td></tr>
<tr class="separator:a52692139499c4653007a67d804987c39"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr><td colspan="2"><div class="groupHeader">Test Mode Selectors</div></td></tr>
<tr class="memitem:a1076587f0f04b12ba6e68ee2851f94a2"><td class="memItemLeft" align="right" valign="top"><a id="a1076587f0f04b12ba6e68ee2851f94a2"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>XUSBPS_TEST_J</b>&#160;&#160;&#160;0x01</td></tr>
<tr class="separator:a1076587f0f04b12ba6e68ee2851f94a2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a004d044ecb2d6b2c833138d28f05e119"><td class="memItemLeft" align="right" valign="top"><a id="a004d044ecb2d6b2c833138d28f05e119"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>XUSBPS_TEST_K</b>&#160;&#160;&#160;0x02</td></tr>
<tr class="separator:a004d044ecb2d6b2c833138d28f05e119"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a736a009152906d8078b01f76f39dd9e8"><td class="memItemLeft" align="right" valign="top"><a id="a736a009152906d8078b01f76f39dd9e8"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>XUSBPS_TEST_SE0_NAK</b>&#160;&#160;&#160;0x03</td></tr>
<tr class="separator:a736a009152906d8078b01f76f39dd9e8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3c492887e42908ea88e4cb92bf326871"><td class="memItemLeft" align="right" valign="top"><a id="a3c492887e42908ea88e4cb92bf326871"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>XUSBPS_TEST_PACKET</b>&#160;&#160;&#160;0x04</td></tr>
<tr class="separator:a3c492887e42908ea88e4cb92bf326871"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4d7af557eb6216c31e286d3ddf9e3ac2"><td class="memItemLeft" align="right" valign="top"><a id="a4d7af557eb6216c31e286d3ddf9e3ac2"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>XUSBPS_TEST_FORCE_ENABLE</b>&#160;&#160;&#160;0x05</td></tr>
<tr class="separator:a4d7af557eb6216c31e286d3ddf9e3ac2"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:a254a6aac5f51679919255c4602aa04d2"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="xusbps__ch9_8h.html#a254a6aac5f51679919255c4602aa04d2">XUsbPs_Ch9HandleSetupPacket</a> (<a class="el" href="struct_x_usb_ps.html">XUsbPs</a> *InstancePtr, <a class="el" href="struct_x_usb_ps___setup_data.html">XUsbPs_SetupData</a> *SetupData)</td></tr>
<tr class="memdesc:a254a6aac5f51679919255c4602aa04d2"><td class="mdescLeft">&#160;</td><td class="mdescRight">This function handles a Setup Data packet from the host.  <a href="#a254a6aac5f51679919255c4602aa04d2">More...</a><br /></td></tr>
<tr class="separator:a254a6aac5f51679919255c4602aa04d2"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Macro Definition Documentation</h2>
<a id="ab655d2d8562a99fadd06f4799847d31d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab655d2d8562a99fadd06f4799847d31d">&#9670;&nbsp;</a></span>XUSBPS_REQ_REPLY_LEN</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define XUSBPS_REQ_REPLY_LEN&#160;&#160;&#160;1024</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Max size of reply buffer. </p>

</div>
</div>
<a id="ac01fcba5b5b1a16e77cbbf38db59adca"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac01fcba5b5b1a16e77cbbf38db59adca">&#9670;&nbsp;</a></span>XUSBPS_REQ_TYPE_MASK</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define XUSBPS_REQ_TYPE_MASK&#160;&#160;&#160;0x60</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Mask for request opcode. </p>

<p class="reference">Referenced by <a class="el" href="xusbps__ch9_8h.html#a254a6aac5f51679919255c4602aa04d2">XUsbPs_Ch9HandleSetupPacket()</a>.</p>

</div>
</div>
<h2 class="groupheader">Function Documentation</h2>
<a id="a254a6aac5f51679919255c4602aa04d2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a254a6aac5f51679919255c4602aa04d2">&#9670;&nbsp;</a></span>XUsbPs_Ch9HandleSetupPacket()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int XUsbPs_Ch9HandleSetupPacket </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_x_usb_ps.html">XUsbPs</a> *&#160;</td>
          <td class="paramname"><em>InstancePtr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="struct_x_usb_ps___setup_data.html">XUsbPs_SetupData</a> *&#160;</td>
          <td class="paramname"><em>SetupData</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>This function handles a Setup Data packet from the host. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">InstancePtr</td><td>is a pointer to <a class="el" href="struct_x_usb_ps.html" title="The XUsbPs driver instance data. ">XUsbPs</a> instance of the controller. </td></tr>
    <tr><td class="paramname">SetupData</td><td>is the structure containing the setup request.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><ul>
<li>XST_SUCCESS if the function is successful.</li>
<li>XST_FAILURE if an Error occured.</li>
</ul>
</dd></dl>
<dl class="section note"><dt>Note</dt><dd>None. </dd></dl>

<p class="reference">References <a class="el" href="struct_x_usb_ps___setup_data.html#afda08a011932bde143139829a61c37c0">XUsbPs_SetupData::bmRequestType</a>, and <a class="el" href="xusbps__ch9_8h.html#ac01fcba5b5b1a16e77cbbf38db59adca">XUSBPS_REQ_TYPE_MASK</a>.</p>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="footer">Copyright &copy; 2015 Xilinx Inc. All rights reserved.</li>
  </ul>
</div>
</body>
</html>
